/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tutorial.DesignPatterns.Visitor;

import tutorial.DesignPatterns.Visitor.interfaces.Visitable;
import tutorial.DesignPatterns.Visitor.interfaces.Visitor;

/**
 *
 * @author Boogie
 */
public class TheOther implements Visitable{
    /*
     * Double dispatch
     * Clasa asta acepta un visitator si apeleaza metoda corespunzatoare this el
     */
    @Override
    public void accept(Visitor visitor) {
        visitor.visitTheOther(this);
    }

    public String getOther() {
        return "The Other";
    }
    
}
